import Cookies from 'js-cookie'
const tokenKey = "oj-c-token"

export function getToken() {
    const token = Cookies.get(tokenKey)
    
    return token === undefined ? null : token
}

export function setToken(token) {
    return Cookies.set(tokenKey,token, { 
        expires: 7,
    })
}

export function removeToken() {
    return Cookies.remove(tokenKey)
}